package com.bjtu.literatureclient.service.book.impl;

import com.bjtu.literatureclient.dao.book.BookDao;
import com.bjtu.literatureclient.service.book.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("bookService")
public class BookServiceImpl implements BookService {
	@Autowired
    private BookDao bookDao;

	@Override
	public List<?> query(String type) {
		if(type.equals("1")){
			return bookDao.query1();
			
		}else{
			return bookDao.query();
		}
		
	}

}
